import request from "../util/request.js";
const urlConst = {
    /*********************客流************************ */
    getClientFlowTop10: `/hbyzyy/ypt/clientflow/getClientFlowTop10.do`,//
    getClientFlowT7days: `/hbyzyy/ypt/clientflow/getClientFlowT7days.do`,//
    getClientFlowYears: `/hbyzyy/ypt/clientflow/getClientFlowYears.do`,//
    getClientFlowHolidayInfo: `/hbyzyy/ypt/clientflow/getClientFlowHolidayInfo.do`,//
    getClientFlowHolidays: `/hbyzyy/ypt/clientflow/getClientFlowHolidays.do`,//
    getThisYearClienFlow: `/hbyzyy/ypt/clientflow/getThisYearClienFlow.do`,//
    getKlzb: `/hbyzyy/ypt/clientflow/getKlzb.do`//
    , getCurYearClientFlowSex: `/hbyzyy/ypt/clientflow/getCurYearClientFlowSex.do`
    , getCurYearClientFlowAge: `/hbyzyy/ypt/clientflow/getCurYearClientFlowAge.do`
    , get7DaysClientFlowAge: `/hbyzyy/ypt/clientflow/get7DaysClientFlowAge.do`
    , compareTimePeriodData: `/hbyzyy/ypt/clientflow/compareTimePeriodData.do`
    , getFwqph: `/hbyzyy/ypt/clientflow/getFwqph.do`
    , getKltqdb: `/hbyzyy/ypt/clientflow/getKltqdb.do`
    , getKlsrqs: `/hbyzyy/ypt/clientflow/getKlsrqs.do`
    /******************车流********************* */
    , getCxll: `/hbyzyy/traffic/getCxll.do` // 获取车型流量
    , getCllydph: `/hbyzyy/traffic/getCllydph.do` // 获取车辆来源地排行
    , getNdcldb: `/hbyzyy/traffic/getNdcldb.do` // 获取年度车流对比
    , getFwqclph: `/hbyzyy/traffic/getFwqclph.do` // 获取服务区车流排行
    , getDqclbhdph: `/hbyzyy/traffic/getDqclbhdph.do` // 获取当前车流饱和度排行
    , getHolidays: `/hbyzyy/traffic/getHolidays.do` // 获取节假日
    , getJjrclfx: `/hbyzyy/traffic/getJjrclfx.do` // 获取节假日车流分析
    , getCompData: `/hbyzyy/traffic/getCompData.do` // 获取服务区信息
    , getClzs: `/hbyzyy/traffic/getClzs.do` // 获取车流总数
    , getPjtlsj: `/hbyzyy/traffic/getPjtlsj.do` // 获取平均停留时间
    , getXse: `/hbyzyy/traffic/getXse.do` // 获取销售额
    , getFwqxx: `/hbyzyy/traffic/getFwqxx.do` // 获取服务区档案信息
    , getFwqwhpclph: `/hbyzyy/traffic/getFwqwhpclph.do` // 获取服务区危化品车辆排行
    , getJqrclfx: `/hbyzyy/traffic/getJqrclfx.do` // 获取近7日车流分析
    , getNdysqs: `/hbyzyy/traffic/getNdysqs.do` // 获取年度营收趋势
    , getYdysqs: `/hbyzyy/traffic/getYdysqs.do` // 获取年度营收趋势
    , getNdclqs: `/hbyzyy/traffic/getNdclqs.do` // 获取年度车流趋势
    , getYdclqs: `/hbyzyy/traffic/getYdclqs.do` // 获取月度车流趋势
    , getCxzb: `/hbyzyy/traffic/getCxzb.do` // 获取月度车流趋势
    , getHmd: `/hbyzyy/traffic/getHmd.do` // 获取黑名单
    , getDcgxd: `/hbyzyy/traffic/getDcgxd.do` // 获取单车贡献度
    , getYdcldb: `/hbyzyy/traffic/getYdcldb.do` // 获取月度车流对比
    , getSdcldb: `/hbyzyy/traffic/getSdcldb.do` // 获取时段车流对比
    , getCompDataClph: `/hbyzyy/traffic/getCompDataClph.do` // 获取服务区信息
    /******************停车********************* */
    , ivmsRealPlay: `/ivms/realplay.do`//ivms播放视频
    , ivmsPlayback: `/ivms/playback.do`//ivms视频回放
    , ivmsCloseStream: `/ivms/closeStream.do`//ivms关闭视频
    , getParkingCxll: `/hbyzyy/parking/getCxll.do` // 获取车型流量
    , getParkingCllydph: `/hbyzyy/parking/getCllydph.do` // 获取车辆来源地排行
    , getParkingNdcldb: `/hbyzyy/parking/getNdcldb.do` // 获取年度车流对比
    , getParkingCwqk: `/hbyzyy/parking/getCwqk.do` // 获取车位使用及入区占用
    , getParkingCwzyl: `/hbyzyy/parking/getCwzyl.do` // 获取车位使用率
    , getParkingPjtlsj: `/hbyzyy/parking/getPjtlsj.do` // 获取平均停留时间
    , getStaParkStatusRec: `/hbyzyy/parking/getStaParkStatusRec.do` // 获取车位最新状态
    , getParkingHmd: `/hbyzyy/parking/getHmd.do` // 获取黑名单
    , getParkingDrclbhqs: `/hbyzyy/parking/getDrclbhqs.do` // 获取当日车流变化趋势
    , getParkingDyclbhqs: `/hbyzyy/parking/getDyclbhqs.do` // 获取当月车流变化趋势
    , getParkingWhpcljcjl: `/hbyzyy/parking/getWhpcljcjl.do` // 获取当月车流变化趋势
    , getParkingHolidays: `/hbyzyy/parking/getHolidays.do` // 获取节假日
    , getParkingJjrclfx: `/hbyzyy/parking/getJjrclfx.do` // 获取节假日车流分析
    , getCompInfoZhkbfwq: `/hbyzyy/parking/getCompInfo.do`//放到停车看板
    , getParkingFtcqytcyj: `/hbyzyy/parking/getFtcqytcyj.do`//非停车区域停车预警
    /******************安全态势感知********************* */
    , getSjnddb: `/hbyzyy/securitySituation/getSjnddb.do` // 获取事件年度对比
    , getJraqsj: `/hbyzyy/securitySituation/getJraqsj.do` // 获取今日安全事件
    , getJrwhpcljcjl: `/hbyzyy/securitySituation/getJrwhpcljcjl.do` // 获取今日危化品车辆进出记录
    , getWhpcll: `/hbyzyy/securitySituation/getWhpcll.do` // 获取危化品车流量
    , getHzsjb: `/hbyzyy/securitySituation/getHzsjb.do` // 获取火灾事件比
    , getWhppjtlsj: `/hbyzyy/securitySituation/getWhppjtlsj.do` // 获取危化品车平均停留时间
    , getNdsjlxzb: `/hbyzyy/securitySituation/getNdsjlxzb.do` // 获取年度事件类型占比
    , getJrjcyjjl: `/hbyzyy/securitySituation/getJrjcyjjl.do` // 获取今日检测预警记录
    , getJrjcyjjlEx: `/hbyzyy/securitySituation/getJrjcyjjlEx.do` // 获取今日检测预警记录
    , getBroadCastDevc: `/hbyzyy/securitySituation/getBroadCastDevc.do` // 添加广播
    , addStaBroadCastRec: `/hbyzyy/securitySituation/addStaBroadCastRec.do` // 添加广播
    , getYctcxx: `/hbyzyy/securitySituation/getYctcxx.do` // 添加广播
    , getZjclqs: `/hbyzyy/securitySituation/getZjclqs.do` // 添加广播
    /******************综合看板********************* */
    , getXsxxZhkb: `/hbyzyy/headquarters/getXsxx.do`
    , getJrCklxxZhkb: `/hbyzyy/headquarters/getJrCklxx.do`
    , getNdsdfxxZhkb: `/hbyzyy/headquarters/getNdsdf.do`
    , getYtxsqsZhkb: `/hbyzyy/headquarters/getYtxsqs.do`
    , getFwzlgzZhkb: `/hbyzyy/headquarters/getFwzlgz.do`
    , getNdcklZhkb: `/hbyzyy/headquarters/getNdckl.do`
    , getNdjyfyZhkb: `/hbyzyy/headquarters/getNdjyfy.do`
    , getKehuobiZhkb: `/hbyzyy/headquarters/getKehuobi.do`
    , getXsTopZhkb: `/hbyzyy/headquarters/getXsTop.do`
    , getYtxsqsExZhkb: `/hbyzyy/headquarters/getYtxsqsEx.do`
    , getNdcklxsdbZhkb: `/hbyzyy/headquarters/getNdcklxsdb.do`
    , getYdsdfxxZhkb: `/hbyzyy/headquarters/getYdsdf.do`
    /******************综合看板（服务区）********************* */
    , getXsxxZhkbfwq: `/hbyzyy/headquartersServer/getXsxx.do`
    , getJrCklxxZhkbfwq: `/hbyzyy/headquartersServer/getJrCklxx.do`
    , getNdsdfxxZhkbfwq: `/hbyzyy/headquartersServer/getNdsdf.do`
    , getYtxsqsZhkbfwq: `/hbyzyy/headquartersServer/getYtxsqs.do`
    , getFwzlgzZhkbfwq: `/hbyzyy/headquartersServer/getFwzlgz.do`
    , getNdcklZhkbfwq: `/hbyzyy/headquartersServer/getNdckl.do`
    , getKehuobiZhkbfwq: `/hbyzyy/headquartersServer/getKehuobi.do`
    , getSpphZhkbfwq: `/hbyzyy/headquartersServer/getSpph.do`
    , getCwxxZhkbfwq: `/hbyzyy/headquartersServer/getCwxx.do`
    , getCeweiDongTaiZhkbfwq: `/hbyzyy/headquartersServer/getCeweiDongTai.do`
    , getYdrxsdbZhkbfwq: `/hbyzyy/headquartersServer/getYdrxsdb.do`
    , getTyytfqxsdbZhkbfwq: `/hbyzyy/headquartersServer/getTyytfqxsdb.do`
    , getFwqjcxxZhkbfwq: `/hbyzyy/securitySituation/getFwqjcxx.do` //代码放到securitySituation下
    , getJdsbxxZhkbfwq: `/hbyzyy/securitySituation/getJdsbxx.do` //代码放到securitySituation下
    /******************厕所********************* */
    , getKqzlData: `/hbyzyy/szhgl/zhcs/kqzl.do`
    , getBndData: `/hbyzyy/szhgl/zhcs/bnd.do`
    , getBydData: `/hbyzyy/szhgl/zhcs/byd.do`
    , getDtData: `/hbyzyy/szhgl/zhcs/dt.do`
    , getDtklzbData: `/hbyzyy/szhgl/zhcs/dtklzb.do`
    , getDtcssyData: `/hbyzyy/szhgl/zhcs/dtcssy.do`
    , getStatoiletseatData: `/hbyzyy/szhgl/zhcs/getStatoiletseat.do`
    , getEnvData: `/hbyzyy/szhgl/zhcs/getEnv.do`
    , swithcnFan: `/hbyzyy/szhgl/zhcs/swithcnFan.do`
    , getToiletStatus: `/hbyzyy/szhgl/zhcs/getToiletStatus.do`
    , getToiletPapermStatus: `/hbyzyy/szhgl/zhcs/getToiletPapermStatus.do`
    , getWtElctByToilet: `/hbyzyy/szhgl/zhcs/getWtElctByToilet.do`
    /******************厕所********************* */
    /******************销售********************* */
    , getXsxx: `/hbyzyy/sale/getXsxx.do`
    , getYtxsqs: `/hbyzyy/sale/getYtxsqs.do`
    , getNdSale: `/hbyzyy/sale/getNdSale.do`
    , getFwqXsph: `/hbyzyy/sale/getFwqXsph.do`
    , getSaleKdjs: `/hbyzyy/sale/getSaleKdjs.do`
    , geNysrzb: `/hbyzyy/sale/geNysrzb.do`
    , getFwqxsph: `/hbyzyy/sale/getFwqxsph.do`
    , getFgsxsph: `/hbyzyy/sale/getFgsxsph.do`
    , getSpxsph: `/hbyzyy/sale/getSpxsph.do`
    , getCcxszb: `/hbyzyy/sale/getCcxszb.do`
    , getCsdpxsph: `/hbyzyy/sale/getCsdpxsph.do`
    , getYyfyxszb: `/hbyzyy/sale/getYyfyxszb.do`
    , getjjrxsdb: `/hbyzyy/sale/getJjrxsdb.do`
    , getQrxsqs: `/hbyzyy/sale/getQrxsqs.do`
    , getJyzydxsqs: `/hbyzyy/sale/getJyzydxsqs.do`
    , getCklysgxqs: `/hbyzyy/sale/getCklysgxqs.do`
    /******************销售********************* */
    /********************能耗*********************** */
    , getMainData: `/hbyzyy/nhxt/getMainData.do`//首页获取上面数据
    , getBaseData: `/hbyzyy/nhxt/getBaseData.do`//首页获取基础信息
    , getHardWareData: `/hbyzyy/nhxt/getHardWareDataNew.do`//首页获取硬件信息
    , getYesterdayData: `/hbyzyy/nhxt/getYesterdayData.do`//首页昨天
    , getBaseDataYearOrMonth: `/hbyzyy/nhxt/getBaseDataYearOrMonth.do`//首页昨天
    , getTops: `/hbyzyy/nhxt/getTops.do`//排名
    , getThisYearData: `/hbyzyy/nhxt/getThisYearData.do`//首页本年
    , getAmount: `/hbyzyy/nhxt/getAmount.do`//费用
    , getCurrentYearWtElctNew: `/hbyzyy/nhxt/getCurrentYearWtElctNew.do`//获取水电年度值
    , getCurrentMonthWtElctNew: `/hbyzyy/nhxt/getCurrentMonthWtElctNew.do`//获取水电月度值
    , getZnzmydl: `/hbyzyy/nhxt/getZnzmydl.do`//智能照明能耗
    , getNdsdf: `/hbyzyy/nhxt/getNdsdf.do`//
    , getWtElctTop10: `/hbyzyy/nhxt/getWtElctTop10.do`//
    , getClklnh: `/hbyzyy/nhxt/getClklnh.do`//
    /********************能耗*********************** */

    /********************基础看板*********************** */
    , getTodayCustomer: `/hbyzyy/base/getTodayCustomer.do`            // 今日客流
    , getFwqMJ: `/hbyzyy/base/getFwqMJ.do`                            // 面积
    , getFwqFunction: `/hbyzyy/base/getFwqFunction.do`                // 服务功能
    , getCw: `/hbyzyy/base/getCw.do`                                  // 车位
    , getParkInfo: `/hbyzyy/base/getParkInfo.do`                      // 停车位占用
    , getModeTypeInfo: `/hbyzyy/base/getModeTypeInfo.do`              // 业态覆盖率
    , getToiletInfo: `/hbyzyy/base/getToiletInfo.do`                  // 公厕信息
    , getCompDatas: `/hbyzyy/base/getCompDatas.do`                     // 服务区信息
    /********************基础看板*********************** */


}
export function chat(data) {
    return request({
        url: '/api.php',
        method: 'get',
        params: data
    })
}
export function ajaxRequest(methodType, urlName, dataParams = {}, urlParam) {
    let dataParamObject = {
        data: dataParams
    }
    const reqUrl = urlName.indexOf('http') !== -1 ? urlName : urlConst[urlName]
    return request({
        url: reqUrl,
        method: methodType,
        data: dataParamObject
    })
}
// urlConfig[urlName]
// export function getHardWareData(data) {

// export function getHardWareData(data) {
//     return request({
//         url: '/nhxt/sxfg/home/getHardWareData.do',
//         method: 'get',
//         params: data
//     })
// }